package com.way;

import org.openjdk.jol.info.ClassLayout;

/**
 * @author 魏彪
 */
public class ClassLayoutExample {

    private int id;

    private String name;

    public static void main(String[] args) throws InterruptedException {
        ClassLayoutExample example = new ClassLayoutExample();
        System.out.println(ClassLayout.parseInstance(example).toPrintable());

        Thread.sleep(5000);

        ClassLayoutExample example1 = new ClassLayoutExample();
        System.out.println(ClassLayout.parseInstance(example1).toPrintable());
    }
}
